package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.User;

public interface UserService {
    User findUserByUsername(String username);

    PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    void add(User user, Integer[] roleIds);

    void deleteUserById(Integer id);

    User findUserById(Integer id);

    Integer[] findRoleIdsByUserId(Integer id);

    void edit(User user, Integer[] roleIds);
}
